﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Fee.Mapping
{
    public class ReductionItemMapping : IEntityTypeConfiguration<ReductionItem>
    {
        public ReductionItemMapping()
        {
            
        }

        public void Configure(EntityTypeBuilder<ReductionItem> builder)
        {
            builder.HasKey(_ => _.Id);
            builder.Property(_ => _.Name);
            builder.Property(_ => _.Rate);
        }
    }
}